<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>物流车辆</title>
		<link rel="stylesheet" type="text/css" href="{:_SKIN}/user/css/baojia.css" />
		<!--<link rel="stylesheet" type="text/css" href="css/base.min.css" />
		<link rel="stylesheet" type="text/css" href="css/common.css" />-->
		<link rel="stylesheet" type="text/css" href="{:_SKIN}/user/layui/css/layui.css" />
		
		<style type="text/css">
			.layui-form {
				width: 60%;
			}
			
			.layui-table tr:hover,
			.layui-table[lay-even] tr:nth-child(even) {
				background: #FFFFFF;
			}
			
			.layui-table,
			.layui-table th {
				text-align: center;
			}
			
			.layui-table {
				margin-top: 20px;
			}
			
			.btn {
				background: #ff6600;
				width: 250px;
				margin-top: 10px;
			}
			
			.add {
				width: 90%;
				z-index: 997;
			}
			
			.aqq {
				position: relative;
			}
			
			.aq-1 {
				right: 32px;
			}
			
			.aq-2 {
				left: -96px;
			}
			
			.layui-form-select dl {
				min-width: 100%;
			}
			
			.layui-table td,
			.layui-table th {
				padding: 5px 25px;
			}
			.zp-1{
				right: 130px;
			}
		</style>
	</head>
	<body>
		<div class="content">
			<div class="titlebar">
				<div class="titlebar-name">物流车辆</div>
			</div>
			<form class="layui-form" id="bd1">
				<table class="layui-table" lay-even lay-skin="nob">
					<colgroup>
						<col width="150">
						<col width="200">
						<col>
					</colgroup>
					<tbody>
						<tr>
							<td colspan="4">
								<div class="layui-form-item">
									<label class="layui-form-label">id：</label>
									<div class="layui-input-block" style="z-index: 999;">
										<input type="text" name="ID" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input" value="{$t.ID}">
									</div>
								</div>
							</td>
						</tr>
						<tr>
							<td colspan="4">
								<div class="layui-form-item">
									<label class="layui-form-label">车辆名称：</label>
									<div class="layui-input-block">
										<input type="text" name="Name" required lay-verify="required" placeholder="请输入车辆名称" autocomplete="off" class="layui-input" value="{$t.Name}">
									</div>
								</div>
							</td>
						</tr>
						<tr>
							<td colspan="4">
								<div class="layui-form-item">
									<label class="layui-form-label">运输模式：</label>
									<div class="layui-input-block">
										<select name="city" lay-verify="">
											<option value="010">长途货运</option>
											<option value="021">短途货运</option>
										</select>
									</div>
								</div>
							</td>
						</tr>
						<tr>
							<td colspan="4">
								<div class="layui-form-item">
									<label class="layui-form-label">车型：</label>
									<div class="layui-input-block" style="z-index: 998;">
										<select name="city" lay-verify="">
											<option value="010">重型大卡</option>
											<option value="021">皮卡</option>
											<option value="021">面包车</option>
											<option value="021">三轮车</option>
											<option value="021">半挂车</option>
											<option value="021">皮卡</option>
											<option value="021">厢式货车</option>
											<option value="021">平板车</option>
											<option value="021">冷藏车</option>
											<option value="021">保温车</option>
											<option value="021">其他</option>
										</select>
									</div>
								</div>
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<div class="layui-form-item">
									<label class="layui-form-label">长度/载重：</label>
									<div class="layui-input-block add">
										<input type="text" name="CarLength" required lay-verify="required" placeholder="请输入车身长度" autocomplete="off" class="layui-input" value="{$t.CarLength}">
									</div>
								</div>
							</td>
							
							<td>
								<div class="layui-form-item aqq aq-1">
									<label class="layui-form-label" style="left: 10px;">米/</label>
									<div class="layui-input-block add">
										<input type="text" name="CarLoad" required lay-verify="required" placeholder="请输入车身重量" autocomplete="off" class="layui-input" value="{$t.CarLoad}">
									</div>
								</div>
							</td>
							<td>
								<div class="layui-form-item aqq aq-2">
									<div class="layui-input-block add">
										<select name="LoadUnit" lay-verify="">
											<option value="010">吨</option>
											{volist name="car" id="vo"}

											<option value="021">{$vo.type}</option>
											
											{/volist}
										</select>
									</div>
								</div>
							</td>
						</tr>
						<tr>
							<td colspan="4">
								<div class="layui-form-item">
									<label class="layui-form-label">车牌号：</label>
									<div class="layui-input-block">
										<input type="text" name="CarNum" required lay-verify="required" placeholder="请输入车牌号" autocomplete="off" class="layui-input" value="{$t.CarNum}">
									</div>
								</div>
							</td>
						</tr>
						<tr>
							<td colspan="4">
								<div class="layui-form-item">
									<label class="layui-form-label">联系车主：</label>
									<div class="layui-input-block">
										<input type="text" name="Contact" required lay-verify="required" placeholder="请填写联系人或车主" autocomplete="off" class="layui-input" value="{$t.Contact}">
									</div>
								</div>
							</td>
						</tr>
						<tr>
							<td colspan="4">
								<div class="layui-form-item">
									<label class="layui-form-label">手机号：</label>
									<div class="layui-input-block">
										<input type="text" name="Mobile" required lay-verify="required" placeholder="请输入手机号" autocomplete="off" class="layui-input" value="{$t.Mobile}">
									</div>
								</div>
							</td>
						</tr>
						<!-- <tr>
							<td colspan="4">
								<div class="layui-form-item">
									<label class="layui-form-label">购买日期：</label>
									<div class="layui-input-block">
										<input type="text" name="title" required lay-verify="required" placeholder="请输入您的购买日期" autocomplete="off" class="layui-input">
									</div>
								</div>
							</td>
						</tr> -->
						<tr>
							<td colspan="4">
								<div class="layui-form-item">
									<label class="layui-form-label">车辆详情：</label>
									<div class="layui-input-block">
										<textarea name="Content" required lay-verify="required" placeholder="请输入" class="layui-textarea" value="{$t.Content}"></textarea>
									</div>
								</div>
							</td>
						</tr>
						<tr>
							<td colspan="4">
								<label class="layui-form-label">照片1：</label>
								<input type="button" value="上传图片" class="layui-btn layui-btn-radius layui-btn-warm aqq zp-1" />
							</td>
							
						</tr>
						<tr>
							<td colspan="4">
								<label class="layui-form-label">照片2：</label>
								<input type="button" value="上传图片" class="layui-btn layui-btn-radius layui-btn-warm aqq zp-1" />
							</td>
							
						</tr>
						<tr>
							<td colspan="4">
								<div class="layui-form-item">
									<div class="layui-input-block">
										<button class="layui-btn btn layui-btn-danger" lay-submit lay-filter="formDemo" onclick="but();" type="button">立即保存</button>
									</div>
								</div>
							</td>
						</tr>
					</tbody>
				</table>
			</form>
		</div>

			{:jq()}
		{:layui()}
		<script type="text/javascript">

		function but(){

			var data=$("#bd1").serialize();


			$.post("{:url('seller/save')}",data,function(res){
				
				
					if(res.code==200){

						alert('修改成功')
						window.location.href="{:url('seller/index')}";
					}else{
						alert(res.msg);
					}
			});
		}


		</script>






	
	</body>
</html>
